from rest_framework import serializers

from cartapp.models import Cart
from goodsapp.sers import GoodsDetailSer


class CartSer(serializers.ModelSerializer):
    class Meta:
        model = Cart
        fields = '__all__'


class CartListSer(serializers.ModelSerializer):
    goods=GoodsDetailSer()
    class Meta:
        model = Cart
        fields = '__all__'
